﻿package com.snakedickgames.common.tweenmax 
{
    import com.pblabs.engine.PBE;
    import com.pblabs.engine.components.TickedComponent;
    import com.greensock.TweenMax;
    
    public class TweenMaxManager extends TickedComponent 
    {
        override public function onTick(deltaTime:Number):void 
        {
            super.onTick(deltaTime);
            if (TweenMax.globalTimeScale != PBE.processManager.timeScale)
                TweenMax.globalTimeScale = PBE.processManager.timeScale;
        }
    }
}